import axios from "axios";
import { setToken2 } from "@/utils/auth.js";
export function getErpToken() {
  let data = new FormData();
  data.append("datacenterId", "5ebd63e642b0b4");
  data.append("userName", "李伟权");
  data.append("password", "999abc");
  axios
    .post(
      "http://8.134.131.189:15000/k3cloud/services/Command.ashx?cmd=login",
      data
    )
    .then(response => {
      setToken2(response.data.ReturnValue.AccessToken);
    })
    .catch(err => {});
}
